// topBar菜单项被选中
import {defineStore} from 'pinia';
import {ref} from "vue";

export const menuStore = defineStore('menu', () => {
    // 默认页面——首页
    const path = ref('home');

    return {path};
}, {
    persist: {
        enabled: true,
        strategies: [{storage: sessionStorage}],
    }
});